public class UseBreak {
    public static void main(String[] args) {
        double year = 1.0,basic = 100.0,sum;
        while(true) {
            sum = basic*Math.pow(1+0.023,year);
            if(sum >200) {
                break;
            }
            else {
                year++;
            }
        }
        System.out.println("需要"+(int)year+"年");
    }
}
